/*package com.topideal.supplychain.tms;

import java.util.concurrent.CountDownLatch;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.topideal.supplychain.tms.master.service.CarrierService;
import com.topideal.supplychain.tms.rabbitmq.RabbitMqUtils;

@Component
public class ProcessReceiver {
    public static CountDownLatch latch;
    
    @Autowired
    private RabbitTemplate rabbitTemplate;

    @Autowired
    private CarrierService carrierService;
    
    public void processMessage(Message message,String msg) {
    	RabbitMqUtils.sendRetryMessage(rabbitTemplate, "tms.retry.queue.test", message);
    	System.out.println(msg+message.getMessageProperties().getHeaders().get(RabbitMqUtils.RETRY_COUNT));
        if (latch != null) {
            latch.countDown();
        }
    }
}*/